package stats;

import get.GetMedia;

import java.io.IOException;

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class CountElements {
	public int Count (Elements elements) {
		int count = 0;
		for (@SuppressWarnings("unused") Element el : elements) {
			count++;
		}
		return count;
	}
	
	public int CountGoodsViewPics (String url) throws IOException {
		return Count(GetMedia.GetGoodsViewPics(url));
	}
}
